<html>
<head><meta charset="utf-8"><title>Shiny Future: async/await and streams · wg-async-foundations · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/index.html">wg-async-foundations</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/Shiny.20Future.3A.20async.2Fawait.20and.20streams.html">Shiny Future: async/await and streams</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="236750228"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/Shiny%20Future%3A%20async/await%20and%20streams/near/236750228" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ibraheem Ahmed <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/Shiny.20Future.3A.20async.2Fawait.20and.20streams.html#236750228">(Apr 29 2021 at 21:25)</a>:</h4>
<p>I don't have time to write up an issue right now, but the <code>for await</code>, <code>async for</code>, and <code>yield</code> keywords to build/consume streams were <a href="https://github.com/rust-lang/rfcs/blob/master/text/2394-async_await.md#for-await-and-processing-streams">left as future extensions</a> in the async/await rfc, and might make for a good shiny future story. The current combinators can be unwieldy due to borrowing issues with async closures, etc.</p>



<a name="236866099"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/Shiny%20Future%3A%20async/await%20and%20streams/near/236866099" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/Shiny.20Future.3A.20async.2Fawait.20and.20streams.html#236866099">(Apr 30 2021 at 16:51)</a>:</h4>
<p>this does sound good</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>